package com.bean;

import java.sql.Date;

import com.service.UserService;

public class Intel
{
	private Integer id;
	private String type;
	private Date ptime;
	private String tittle;
	private String dspt;
	private Integer user_id;
	
	
	public Integer getId()
	{
		return id;
	}
	public void setId(Integer id)
	{
		this.id = id;
	}
	public String getType()
	{
		return type;
	}
	public void setType(String type)
	{
		this.type = type;
	}
	public Date getPtime()
	{
		return ptime;
	}
	public void setPtime(Date ptime)
	{
		this.ptime = ptime;
	}
	public String getTittle()
	{
		return tittle;
	}
	public void setTittle(String tittle)
	{
		this.tittle = tittle;
	}
	public String getDspt()
	{
		return dspt;
	}
	public void setDspt(String dspt)
	{
		this.dspt = dspt;
	}
	public Integer getUser_id()
	{
		return user_id;
	}
	public void setUser_id(Integer user_id)
	{
		this.user_id = user_id;
	}
	@Override
	public String toString()
	{
		return "Intel [id=" + id + ", type=" + type + ", ptime=" + ptime + ", tittle=" + tittle + ", dspt=" + dspt + ", user_id=" + user_id + "]";
	}
	
	
	
	
	
	
	public User getUser()
	{
		return UserService.getInstance().queryOneUser(this.user_id+"");
	}
	
	
	
	
	
}
